<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?><div class="nav">
    <div>
        <dl>
            <dt><a href="/">首页</a></dt>
        </dl>
        <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=dd45fdad8b6204787747270655aad6e6&action=category&catid=0&order=listorder+ASC\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'category')) {$data = $content_tag->category(array('catid'=>'0','order'=>'listorder ASC','limit'=>'20',));}?>
        <?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
        <dl>
            <dt><?php echo $r['catname'];?></dt>
            <?php $n=1;if(is_array(subcat($r['catid']))) foreach(subcat($r['catid']) AS $v) { ?>
            <dd>
                <a href="<?php echo $v['url'];?>"><?php echo $v['catname'];?></a>
            </dd>
            <?php $n++;}unset($n); ?>
        </dl>
        <?php $n++;}unset($n); ?>
        <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
    </div>
</div>